package collection;

import java.util.ArrayList;
import java.util.List;

public class LestDemo2 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("one");
        list.add("two");
        list.add("three");
        list.add(1,"four");
        System.out.println(list);
        list.remove(3);
        System.out.println(list);

    }
}